// 基于template/src/views/{{appModules}}/{{pages@DECUSTOMVIEW}}/{{spinalCase page.codeName}}-model.ts.hbs生成
import { ICustomViewModel } from "@/core/interface/view/model";
function getModel(): ICustomViewModel {
    return {
        caption: "自定义实现编辑视图",
        title: "自定义实现编辑视图",
        capPSLanguageRes: "DE.LNAME.IBIZCUSTOM",
        titlePSLanguageRes: "",
        showDataInfoBar: false,
        codeName: 'IBIZCustomCustomEditView',
        uiEngineModel: [
                    {
                        name: 'toolbar_deuiaction1_click',
                        triggerType: 'CTRLEVENT',
                        logicType: 'APPVIEWUIACTION',
                        eventNames: 'CLICK',
                        scriptCode: ``,
                        logicName:``,
                        logicTag: '',
                        eventArg: 'deuiaction1',
                        eventArg2: '',
                        timer: 0,
                        psViewCtrlName: 'toolbar',
                        uIActionTag: 'New',
                        entityCodeName: '',
                    },
                    {
                        name: 'toolbar_deuiaction2_click',
                        triggerType: 'CTRLEVENT',
                        logicType: 'APPVIEWUIACTION',
                        eventNames: 'CLICK',
                        scriptCode: ``,
                        logicName:``,
                        logicTag: '',
                        eventArg: 'deuiaction2',
                        eventArg2: '',
                        timer: 0,
                        psViewCtrlName: 'toolbar',
                        uIActionTag: 'RemoveAndExit',
                        entityCodeName: '',
                    },
                    {
                        name: 'toolbar_tbitem3_click',
                        triggerType: 'CTRLEVENT',
                        logicType: 'APPVIEWUIACTION',
                        eventNames: 'CLICK',
                        scriptCode: ``,
                        logicName:``,
                        logicTag: '',
                        eventArg: 'tbitem3',
                        eventArg2: '',
                        timer: 0,
                        psViewCtrlName: 'toolbar',
                        uIActionTag: 'Save',
                        entityCodeName: '',
                    },
                    {
                        name: 'toolbar_tbitem5_click',
                        triggerType: 'CTRLEVENT',
                        logicType: 'APPVIEWUIACTION',
                        eventNames: 'CLICK',
                        scriptCode: ``,
                        logicName:``,
                        logicTag: '',
                        eventArg: 'tbitem5',
                        eventArg2: '',
                        timer: 0,
                        psViewCtrlName: 'toolbar',
                        uIActionTag: 'SaveAndExit',
                        entityCodeName: '',
                    },
                    {
                        name: 'toolbar_tbitem9_click',
                        triggerType: 'CTRLEVENT',
                        logicType: 'APPVIEWUIACTION',
                        eventNames: 'CLICK',
                        scriptCode: ``,
                        logicName:``,
                        logicTag: '',
                        eventArg: 'tbitem9',
                        eventArg2: '',
                        timer: 0,
                        psViewCtrlName: 'toolbar',
                        uIActionTag: 'SaveAndStart',
                        entityCodeName: '',
                    },
                    {
                        name: 'toolbar_tbitem15_click',
                        triggerType: 'CTRLEVENT',
                        logicType: 'APPVIEWUIACTION',
                        eventNames: 'CLICK',
                        scriptCode: ``,
                        logicName:``,
                        logicTag: '',
                        eventArg: 'tbitem15',
                        eventArg2: '',
                        timer: 0,
                        psViewCtrlName: 'toolbar',
                        uIActionTag: 'Print',
                        entityCodeName: '',
                    },
                    {
                        name: 'FORMLOAD',
                        triggerType: 'VIEWEVENT',
                        logicType: 'DEUILOGIC',
                        eventNames: 'onViewMounted',
                        scriptCode: ``,
                        logicName:`CustomViewFormLoad`,
                        logicTag: '',
                        eventArg: '',
                        eventArg2: '',
                        timer: 0,
                        psViewCtrlName: '',
                        entityCodeName: 'IBIZCustom',
                    }
            ],
        ctrls: [
            {
                name: 'toolbar',
                codeName: 'CustomEditViewtoolbar',
                controlType: 'TOOLBAR',
            },
            {
                name: 'form',
                codeName: 'Main',
                controlType: 'FORM',
            }
        ],
        ctrlParams: {
            IBIZCustomtoolbar: {},
            IBIZCustomform: {},
        },
        cssName: "",
        name: "IBIZCustomCustomEditView",
        viewType: "DECUSTOMVIEW",
        viewStyle: "DEFAULT",
        showCaption: true,
        isLoadDefault: true,
        entityCodeName: "IBIZCustom",
        keyPSAppDEField: "IBIZCustomId",
        majorPSAppDEField: "IBIZCustomName",
        expandSearchForm:false,
        quickSearchPlaceholder: ['自定义名称',].join(","),
        useDefaultLayout: false,
        layoutMode: "FLEX",
        rootLayoutDetailNames: ["page_container"],
        toolbarItems: [
            {
          		actionLevel: '100',
          		caption: '新建',
          		captionLanResTag: 'TBB.TEXT.*.NEW',
          		name: 'deuiaction1',
          		showCaption: true,
          		tooltip: '新建',
          		tooltipLanResTag: 'TBB.TOOLTIP.*.NEW',
          		itemType: 'DEUIACTION',
          		showIcon: true,
          		disabled: false,
          		cssName: '',
          		imagePath: '',
          		iconCls: 'fa fa-file-text-o',
                  imagePathX: '',
          		dataAccessAction: '',
          		noPrivDisplayMode: 2,
          		uiAction: {
          			codeName: 'New',
          			uIActionMode: 'SYS',
          			actionTarget: '',
          			uIActionTag: 'New',
          			uIActionType: 'DEUIACTION'
          		},
                  logic: {
                  	name: 'toolbar_deuiaction1_click',
                  	actionTag: 'New',
                  	xDataCtrlName: '',
                  	predefinedType: 'EDITVIEW_NEWACTION',
                  }
            },
            {
          		actionLevel: '100',
          		caption: '删除并退出',
          		captionLanResTag: 'TBB.TEXT.EDITVIEW.REMOVEANDCLOSE',
          		name: 'deuiaction2',
          		showCaption: true,
          		tooltip: '删除并退出',
          		tooltipLanResTag: 'TBB.TOOLTIP.EDITVIEW.REMOVEANDCLOSE',
          		itemType: 'DEUIACTION',
          		showIcon: true,
          		disabled: false,
          		cssName: '',
          		imagePath: '',
          		iconCls: 'fa fa-remove',
                  imagePathX: '',
          		dataAccessAction: '',
          		noPrivDisplayMode: 2,
          		uiAction: {
          			codeName: 'RemoveAndExit',
          			uIActionMode: 'SYS',
          			actionTarget: 'SINGLEKEY',
          			uIActionTag: 'RemoveAndExit',
          			uIActionType: 'DEUIACTION'
          		},
                  logic: {
                  	name: 'toolbar_deuiaction2_click',
                  	actionTag: 'RemoveAndExit',
                  	xDataCtrlName: '',
                  	predefinedType: 'EDITVIEW_REMOVEANDEXITACTION',
                  }
            },
            {
          		actionLevel: '100',
          		caption: '保存',
          		captionLanResTag: 'TBB.TEXT.*.SAVE',
          		name: 'tbitem3',
          		showCaption: true,
          		tooltip: '保存',
          		tooltipLanResTag: 'TBB.TOOLTIP.*.SAVE',
          		itemType: 'DEUIACTION',
          		showIcon: true,
          		disabled: false,
          		cssName: 'deepskyblue-toolbar',
          		imagePath: '',
          		iconCls: 'fa fa-save',
                  imagePathX: '',
          		dataAccessAction: '',
          		noPrivDisplayMode: 2,
          		uiAction: {
          			codeName: 'Save',
          			uIActionMode: 'SYS',
          			actionTarget: '',
          			uIActionTag: 'Save',
          			uIActionType: 'DEUIACTION'
          		},
                  logic: {
                  	name: 'toolbar_tbitem3_click',
                  	actionTag: 'Save',
                  	xDataCtrlName: '',
                  	predefinedType: 'EDITVIEW_SAVEACTION',
                  }
            },
            {
          		actionLevel: '100',
          		caption: '保存并关闭',
          		captionLanResTag: 'TBB.TEXT.EDITVIEW.SAVEANDCLOSE',
          		name: 'tbitem5',
          		showCaption: true,
          		tooltip: '保存并关闭',
          		tooltipLanResTag: 'TBB.TOOLTIP.EDITVIEW.SAVEANDCLOSE',
          		itemType: 'DEUIACTION',
          		showIcon: true,
          		disabled: false,
          		cssName: '',
          		imagePath: '',
          		iconCls: 'sx-tb-saveandclose',
                  imagePathX: '',
          		dataAccessAction: '',
          		noPrivDisplayMode: 2,
          		uiAction: {
          			codeName: 'SaveAndExit',
          			uIActionMode: 'SYS',
          			actionTarget: '',
          			uIActionTag: 'SaveAndExit',
          			uIActionType: 'DEUIACTION'
          		},
                  logic: {
                  	name: 'toolbar_tbitem5_click',
                  	actionTag: 'SaveAndExit',
                  	xDataCtrlName: '',
                  	predefinedType: 'EDITVIEW_SAVEANDEXITACTION',
                  }
            },
        ],
        layoutItems: {
          page_container: {
              name: "page_container",
              type: "VIEWLAYOUT",
              caption: "",
              titleBarCloseMode: 0,
              isShowCaption: false,
              sysCss: "",
              itemType: "CONTAINER",    
              codeName: "",
              itemStyle: "DEFAULT",
              dynaClass: "",
              labelDynaClass: "",
              labelCssStyle: "",
              visible: true,
              disabled: false,
              layout: "FLEX",
              layoutPos: "",
              layoutHeight: 0,
              layoutWidth: 0,
              heightMode: "",
              widthMode: "",
              spacingBottom: "",
              spacingLeft: "",
              spacingRight: "",
              spacingTop: "",
              hAlignSelf: "",
              vAlignSelf: "",
              userTag:'',
              userTag2:'',
              flexGrow: -1,
              flexParams: {
                  align: "",
                  dir: "column",
                  vAlign: "",
              },
              details: ["container_grid1","form"],
              dataRegionType: "INHERIT",
              dataSourceType: "",
          },
          container_grid1: {
              name: "container_grid1",
              type: "VIEWLAYOUT",
              caption: "栅格容器",
              titleBarCloseMode: 0,
              isShowCaption: false,
              sysCss: "",
              itemType: "CONTAINER",    
              codeName: "",
              itemStyle: "DEFAULT",
              dynaClass: "",
              labelDynaClass: "",
              labelCssStyle: "",
              visible: true,
              disabled: false,
              layout: "SIMPLEFLEX",
              layoutPos: "",
              layoutHeight: 0,
              layoutWidth: 0,
              heightMode: "",
              widthMode: "",
              spacingBottom: "",
              spacingLeft: "",
              spacingRight: "",
              spacingTop: "",
              hAlignSelf: "",
              vAlignSelf: "",
              userTag:'',
              userTag2:'',
              flexGrow: -1,
              flexParams: {
                  align: "",
                  dir: "",
                  vAlign: "",
              },
              parentName: "page_container",
              details: ["container1","container2"],
              dataRegionType: "INHERIT",
              dataSourceType: "",
          },
          container1: {
              name: "container1",
              type: "VIEWLAYOUT",
              caption: "面板容器",
              titleBarCloseMode: 0,
              isShowCaption: false,
              sysCss: "",
              itemType: "CONTAINER",    
              codeName: "",
              itemStyle: "DEFAULT",
              dynaClass: "",
              labelDynaClass: "",
              labelCssStyle: "",
              visible: true,
              disabled: false,
              layout: "SIMPLEFLEX",
              layoutPos: "",
              layoutHeight: 0,
              layoutWidth: 0,
              heightMode: "",
              widthMode: "",
              spacingBottom: "",
              spacingLeft: "",
              spacingRight: "",
              spacingTop: "",
              hAlignSelf: "",
              vAlignSelf: "",
              userTag:'',
              userTag2:'',
              flexGrow: 3,
              flexParams: {
                  align: "",
                  dir: "",
                  vAlign: "",
              },
              parentName: "container_grid1",
              details: ["view_pagecaption"],
              dataRegionType: "INHERIT",
              dataSourceType: "",
          },
          view_pagecaption: {
              name: "view_pagecaption",
              type: "VIEWLAYOUT",
              caption: "页面标题",
              titleBarCloseMode: 0,
              isShowCaption: false,
              sysCss: "",
              itemType: "FIELD",    
              codeName: "",
              itemStyle: "DEFAULT",
              dynaClass: "",
              labelDynaClass: "",
              labelCssStyle: "",
              visible: true,
              disabled: false,
              layout: "",
              layoutPos: "",
              layoutHeight: 0,
              layoutWidth: 0,
              heightMode: "",
              widthMode: "",
              spacingBottom: "",
              spacingLeft: "",
              spacingRight: "",
              spacingTop: "",
              hAlignSelf: "",
              vAlignSelf: "",
              userTag:'',
              userTag2:'',
              flexGrow: -1,
              flexParams: {
                  align: "",
                  dir: "",
                  vAlign: "",
              },
              parentName: "container1",
              required: false,
              dataItemName: "",
              predefinedType: "VIEW_PAGECAPTION",
              editorDynaClass: "",
              renderMode: "HEADING1",
              wrapMode: "NOWRAP",
              vAlign: "MIDDLE",
              hAlign: "LEFT",
          },
          
          
          container2: {
              name: "container2",
              type: "VIEWLAYOUT",
              caption: "面板容器",
              titleBarCloseMode: 0,
              isShowCaption: false,
              sysCss: "",
              itemType: "CONTAINER",    
              codeName: "",
              itemStyle: "DEFAULT",
              dynaClass: "",
              labelDynaClass: "",
              labelCssStyle: "",
              visible: true,
              disabled: false,
              layout: "SIMPLEFLEX",
              layoutPos: "",
              layoutHeight: 0,
              layoutWidth: 0,
              heightMode: "",
              widthMode: "",
              spacingBottom: "",
              spacingLeft: "",
              spacingRight: "",
              spacingTop: "",
              hAlignSelf: "",
              vAlignSelf: "",
              userTag:'',
              userTag2:'',
              flexGrow: 9,
              flexParams: {
                  align: "",
                  dir: "",
                  vAlign: "",
              },
              parentName: "container_grid1",
              details: ["toolbar"],
              dataRegionType: "INHERIT",
              dataSourceType: "",
          },
          toolbar: {
              name: "toolbar",
              type: "VIEWLAYOUT",
              caption: "工具栏",
              titleBarCloseMode: 0,
              isShowCaption: true,
              sysCss: "",
              itemType: "CTRLPOS",    
              codeName: "",
              itemStyle: "DEFAULT",
              dynaClass: "",
              labelDynaClass: "",
              labelCssStyle: "",
              visible: true,
              disabled: false,
              layout: "",
              layoutPos: "",
              layoutHeight: 0,
              layoutWidth: 0,
              heightMode: "",
              widthMode: "",
              spacingBottom: "",
              spacingLeft: "",
              spacingRight: "",
              spacingTop: "",
              hAlignSelf: "",
              vAlignSelf: "",
              userTag:'',
              userTag2:'',
              flexGrow: -1,
              flexParams: {
                  align: "",
                  dir: "",
                  vAlign: "",
              },
              parentName: "container2",
          },
          
          
          
          form: {
              name: "form",
              type: "VIEWLAYOUT",
              caption: "表单",
              titleBarCloseMode: 0,
              isShowCaption: true,
              sysCss: "",
              itemType: "CTRLPOS",    
              codeName: "",
              itemStyle: "DEFAULT",
              dynaClass: "",
              labelDynaClass: "",
              labelCssStyle: "",
              visible: true,
              disabled: false,
              layout: "",
              layoutPos: "",
              layoutHeight: 0,
              layoutWidth: 0,
              heightMode: "",
              widthMode: "",
              spacingBottom: "",
              spacingLeft: "",
              spacingRight: "",
              spacingTop: "",
              hAlignSelf: "",
              vAlignSelf: "",
              userTag:'',
              userTag2:'',
              flexGrow: -1,
              flexParams: {
                  align: "",
                  dir: "",
                  vAlign: "",
              },
              parentName: "page_container",
          },
          
          
        },
        ctrlArray: [
            { name: "form", controlType: "FORM" }
        ],
        engineArray: [
        ]
    }
}
export const model = getModel();